import config from "@/config";
import http from "@/utils/request";

export default {
	list: {
		url: `${config.API_URL}/equipcheckdocline/list/`,
		name: "列表",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	model: {
		url: `${config.API_URL}/equipcheckdocline/`,
		name: "查询一条",
		get: async function (params) {
			return await http.get(this.url + params);
		},
	},
	update: {
		url: `${config.API_URL}/equipcheckdocline/`,
		name: "修改",
		put: async function (data) {
			return await http.put(this.url, data);
		},
	},
	saveResult: {
		url: `${config.API_URL}/equipcheckdocline/saveResult/`,
		name: "保存点检结果",
		put: async function (data) {
			return await http.put(this.url, data);
		},
	},
	saveRemark: {
		url: `${config.API_URL}/equipcheckdocline/saveRemark/`,
		name: "保存点检描述",
		put: async function (data) {
			return await http.put(this.url, data);
		},
	},
};
